<h1>Courses</h1>
<#if courses?has_content>

<table>
	<thead>
		<tr>
			<th>Id</th>
			<th>Name</th>
			<th>Weeks</th>
			<th>Year</th>
			<th>View</th>
		</tr>
	</thead>
	<tbody>
		<#list courses as course>
			<tr>
				<td>${course.id?c}</td>
				<td>${course.name}</td>
				<td>${course.duration}</td>
				<td>${course.year}</td>
				<td><a href="${rootPath}/courses/${course.id?c}">View</a></td>
			</tr>
		</#list>
	</tbody>
</table>
<#else>
<h2>There is no course.</h2>
</#if>
